function openWebSocket(id,name){
	let socket;
	
	if(typeof(WebSocket) == undefined){
		alert("对不起，您的浏览器暂不支持WebSocket通信...");
		return;
	}
	
	socket = new WebSocket("ws://127.0.0.1:9999/ws/" + id);
	socket.onopen = function(){   // 连接到服务时...
		console.log("开始连接..");
	}
	
	socket.onclose = function(){   // 连接断开时...
		console.log("连接已断开...");
	}
	
	socket.onerror = function(){   // 访问失败...
		console.log("访问服务器失败...");
	}
	
	return socket;
}